//
//  CBDWallpaperBottomView.m
//  CBDWallpapar
//
//  Created by Mr. Z. on 2019/7/22.
//  Copyright © 2019年 CBD工作室. All rights reserved.
//

#import "CBDWallpaperBottomView.h"
#import "CBDWallpaperModel.h"


@interface CBDWallpaperBottomView()<MKMapViewDelegate>
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UILabel *pubdateLabel;
@property (weak, nonatomic) IBOutlet UIButton *saveBtn;
@property (weak, nonatomic) IBOutlet UIButton *lookBtn;
@end

@implementation CBDWallpaperBottomView
- (void)awakeFromNib {
    [super awakeFromNib];

}

- (void)setModel:(CBDWallpaperModel *)model {

    _contentLabel.text = model.content;
    _pubdateLabel.text = model.pubdate;
}

- (void)changeEnble {
    _saveBtn.enabled = YES;
    _lookBtn.enabled = YES;
}

- (IBAction)bottomClicked:(UIButton *)sender {
    if (self.btmClickBlock) {
        self.btmClickBlock(sender.tag);
    }
}


@end
